package com.example.finalapp;

import com.example.finalapp.R;
import com.example.finalapp.R.id;
import com.example.finalapp.R.layout;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.Menu;
import android.widget.EditText;
import android.widget.ToggleButton;

public class BudgetManagerActivity extends Activity {


	private static final String TAG = "AccountEditor";


	/** The index of the account column */
	private static final int PROJECTION_INDEX_TITLE = 1;
	private static final int PROJECTION_INDEX_AMOUNT = 2;
	private static final int PROJECTION_INDEX_ROLLOVER_FLAG = 3;
	private static final int PROJECTION_INDEX_START_DATE = 4;

	// Identifiers for our menu items.
	private static final int REVERT_ID = Menu.FIRST;
	private static final int DISCARD_ID = Menu.FIRST + 1;
	private static final int DELETE_ID = Menu.FIRST + 2;
	private static final int SAVE_ID = Menu.FIRST + 3;

	// The different distinct states the activity can be run in.
	private static final int STATE_EDIT = 0;
	private static final int STATE_INSERT = 1;

	private int mState;
	private Uri mUri;

	private EditText mTitle;
	private EditText mAmount;
	private ToggleButton mRollover;
	private DateControlSet mStartDate;

	private String mOriginalTitle;
	private float mOriginalAmount;
	private int mOriginalRollover;
	private long mOriginalStartDate;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_budget_manager);
		Log.d("Budget", "onCreate");

		mTitle = (EditText) findViewById(R.id.account_title);
		mAmount = (EditText) findViewById(R.id.account_amount);
		mRollover = (ToggleButton) findViewById(R.id.account_rollover);
		mStartDate = new DateControlSet(this, R.id.account_start_date, R.id.account_start_time);
	}
}

